﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductComment.ascx.cs"
    Inherits="Pub_Module_ProductComment" %>
<%@ Register Namespace="CustomControls" TagPrefix="ctrl" %>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #ffffcc;">
    <tr>
        <td align="left">
            <div style="border: solid 1px #ff9933; background-color: #ffffcc; padding: 5px 5px 5px 5px"
                id="idv1" runat="server">
                <ctrl:ExGridView ID="grvMaster" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="0" CellSpacing="0" DataKeyNames="PdID" ForeColor="#333333" GridLines="None"
                    GridHeight="250px" ShowHeader="false" Width="100%" OnPageIndexChanging="grvMaster_PageIndexChanging1">
                    <RowStyle BackColor="MintCream" ForeColor="#333333" />
                    <Columns>
                        <asp:TemplateField>
                            <itemtemplate>
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("CmPD_Title") %>' Font-Bold="true" ForeColor="#006666"
                                                Font-Size="14px" Font-Names="Tahoma"></asp:Label>
                                            <br />
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="lblContent" runat="server" Text='<%# Eval("CmPD_Content") %>' Font-Size="12px"
                                                Font-Names="Tahoma"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <br />
                                            <br />
                                            (<asp:Label ID="lblCusName" runat="server" Text='<%# Eval("CmPD_CusName") %>' Font-Size="12px" ForeColor="#006666"
                                                Font-Names="Tahoma" Font-Italic="true"></asp:Label>)
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                            <hr style="border:solid 1px LightGrey" />
</itemtemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="WhiteSmoke" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#ffcc33" ForeColor="#333333" HorizontalAlign="Center" />
                    <AlternatingRowStyle BackColor="White" />
                </ctrl:ExGridView>
            </div>
        </td>
    </tr>
    <tr>
        <td style="text-align: left; vertical-align: middle; background-color: White">
            &nbsp;
        </td>
    </tr>
    <tr>
        <td>
            <div style="border: solid 1px LightGrey; background-color: White; padding: 5px 5px 5px 5px">
                <table border="0" cellpadding="0" cellspacing="2" style="width: 100%">
                    <tr>
                        <td>
                            <table border="0" cellpadding="2" cellspacing="0">
                                <tr>
                                    <td>
                                        <img src="<%= ResolveUrl("~/")%>Images/Icon/comment_stage_6.png" border="0" width="25px" height="25px" /></td>
                                    <td valign="middle">
                                        <asp:Label ID="Label1" runat="server" Text="Nhận xét của bạn" ForeColor="#ff0000"
                                            Font-Bold="true"></asp:Label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap" style="width: 50%">
                            <asp:TextBox ID="txtTitle" runat="server" CssClass="adword-textbox" onblur="if(this.value==''){ this.value='Tiêu đề'; this.className = 'adword-textbox'}"
                                onfocus="if(this.value=='Tiêu đề'){ this.value = ''; this.className = 'adword-textbox2'}"
                                Width="90%" Text="Tiêu đề" ValidationGroup="vGr_Comment"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtTitle"
                                ErrorMessage="Nhập tiêu đề nhận xét của bạn" ValidationGroup="vGr_Comment">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtTitle"
                                ErrorMessage="Nhập tiêu đề nhận xét của bạn" InitialValue="Tiêu đề" ValidationGroup="vGr_Comment">&nbsp;</asp:RequiredFieldValidator>
                        </td>
                        <td nowrap="nowrap" style="width: 50%">
                            <asp:TextBox ID="txtName" runat="server" CssClass="adword-textbox" onfocus="if(this.value=='Họ tên'){ this.value = ''; this.className = 'adword-textbox2'}"
                                onblur="if(this.value==''){ this.value='Họ tên'; this.className = 'adword-textbox'}"
                                Width="90%" Text="Họ tên" ValidationGroup="vGr_Comment"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName"
                                ErrorMessage="Nhập vào họ tên" ValidationGroup="vGr_Comment">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtName"
                                ErrorMessage="Nhập vào họ tên" InitialValue="Họ tên" ValidationGroup="vGr_Comment">&nbsp;</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" nowrap="nowrap">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" nowrap="nowrap" align="left">
                            <asp:TextBox ID="txtContent" runat="server" Height="129px" TextMode="MultiLine" Width="97%"
                                ForeColor="black" CssClass="adword-textbox" ValidationGroup="vGr_Comment"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtContent"
                                ErrorMessage="Nhập nội dung nhận xét của bạn" ValidationGroup="vGr_Comment">&nbsp;</asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2" nowrap="nowrap">
                            <asp:TextBox ID="txtCodeRandom" runat="server" BackColor="#FFFFC0" BorderStyle="None"
                                BorderWidth="0px" Width="55px" Style="text-align: center; font-weight: bold"
                                ForeColor="#C00000" ValidationGroup="vGr_Comment" ReadOnly="true"></asp:TextBox>
                            <asp:TextBox ID="txtInputRandom" runat="server" onblur="if(this.value==''){ this.value='Mã xác nhận'; this.className = 'adword-textbox'}"
                                onfocus="if(this.value=='Mã xác nhận'){ this.value = ''; this.className = 'adword-textbox2'}"
                                Text="Mã xác nhận" CssClass="adword-textbox" ValidationGroup="vGr_Comment"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Mã xác nhận chưa đúng"
                                ControlToCompare="txtInputRandom" ControlToValidate="txtCodeRandom" ValidationGroup="vGr_Comment">&nbsp;</asp:CompareValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtInputRandom"
                                ErrorMessage="Nhập vào mã xác nhận" InitialValue="Mã xác nhận">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Nhập vào mã xác nhận"
                                ControlToValidate="txtInputRandom">&nbsp;</asp:RequiredFieldValidator><asp:Button ID="btnComment" runat="server" CssClass="btn_Common" OnClick="btnComment_Click"
                                Text="Gửi nhận xét" ValidationGroup="vGr_Comment" /></td>
                    </tr>
                </table>
            </div>
        </td>
    </tr>
</table>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList"
    ShowMessageBox="True" Font-Bold="True" Font-Names="Tahoma" Font-Size="12px" ShowSummary="False"
    ValidationGroup="vGr_Comment" />
